package com.qf.contrroller;

import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 以梦为马，以汗为泉，不忘初心，不负韶华
 *
 * @author
 * @version 1.0
 * @data 2025/2/7 19:00
 */

@Controller
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/find")
    public String findUser(){//查
        userService.findUser();
        return "ok.html";
    }


    @GetMapping("/del")
    public String delUser(){//删
        userService.delUser();
        return "ok.html";

    }
    @GetMapping("update")
    public String update(){
        userService.updateUser();
        return "ok.html";
    }

}
